package com.zmzncs.lmtc.module.park.pojo.park_manager;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 车场管理员表
 * </p>
 *
 * @author 任建波
 * @since 2020-12-09
 */
@Data
public class ParkManagerSearchForm implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "当前页")
    @NotNull
    private Integer currentPage;

    @ApiModelProperty(value = "每页多少条")
    @NotNull @Max(100)
    private Integer size;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "手机号")
    private String mobilePhone;

    @ApiModelProperty(value = "微信小程序openid")
    private String openid;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "是否车场主（0：不是 1：是）")
    private Boolean isOwner;

    @ApiModelProperty(value = "状态（0：不可用 1：可用）")
    private Boolean status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    public Page getPage() {
        return new Page(currentPage, size);
    }

}
